<?php

namespace app\api\validate;

use app\common\validate\CommonValidate;

class NoticeValidate
{
    public static function getNoticeList($data)
    {
        $rule = array_merge([
            //其他规则
        ], CommonValidate::$pageRule);
        $message = array_merge([
            //其他规则
        ], CommonValidate::$pageMsg);
        return CommonValidate::check($rule, $message, $data);
    }

    public static function userReadNotice($data)
    {
        $rule = [
            'notice_id' => 'require',
        ];
        $message = [
            'notice_id.require' => "缺少参数",
        ];
        return CommonValidate::check($rule, $message, $data);
    }
}